package com.huamao.zh.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.huamao.zh.service.OrdersAutomaticReceiptService;

@Controller
@RequestMapping("/ordersAutomaticReceipt")
public class OrdersAutomaticReceiptController {
	@Autowired
	OrdersAutomaticReceiptService ordersAutomaticReceiptService;

	@RequestMapping("")
	public String index() {
		String ha = "HelloWord!";
		return ha;
	}

	@RequestMapping("/ordersAutomaticReceipt")
	@ResponseBody
	public void ordersAutomaticReceipt() throws Exception {
		ordersAutomaticReceiptService.OrdersAutomaticReceipt();
	}
}
